import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/invoice/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: 'api/invoice/update',
    method: 'post',
    data
  })
}

export function updatePrintTimes(data) {
  const url = 'api/invoice/updatePrintTimes?id=' + data
  return request({
    url: url,
    method: 'post'
  })
}
